package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@MappingTable(tableName = "CMS_NOTICE")
public class Notice extends BaseObject {

    @MappingColumn(columnName = "NOTICE_ID", columnPk = true, columnLength = 32)
    private String noticeId;
    @MappingColumn(columnName = "NOTICE_TITLE")
    private String noticeTitle;
    @MappingColumn(columnName = "NOTICE_CONTENT")
    private String noticeContent;
    @MappingColumn(columnName = "NOTICE_STATE")
    private Integer noticeState;
    @MappingColumn(columnName = "NOTICE_TOP")
    private Boolean noticeTop;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @MappingColumn(columnName = "NOTICE_START_TIME")
    private Date noticeStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @MappingColumn(columnName = "NOTICE_END_TIME")
    private Date noticeEndTime;
    @MappingColumn(columnName = "NOTICE_CREATE_TIME")
    private Date noticeCreateTime;
    @MappingColumn(columnName = "NOTICE_UPDATE_TIME")
    private Date noticeUpdateTime;
    @MappingColumn(columnName = "USER_ID")
    private String userId;



    public String getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(String noticeId) {
        this.noticeId = noticeId;
    }

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }

    public Integer getNoticeState() {
        return noticeState;
    }

    public void setNoticeState(Integer noticeState) {
        this.noticeState = noticeState;
    }

    public Boolean getNoticeTop() {
        return noticeTop;
    }

    public void setNoticeTop(Boolean noticeTop) {
        this.noticeTop = noticeTop;
    }

    public Date getNoticeStartTime() {
        return noticeStartTime;
    }

    public void setNoticeStartTime(Date noticeStartTime) {
        this.noticeStartTime = noticeStartTime;
    }

    public Date getNoticeEndTime() {
        return noticeEndTime;
    }

    public void setNoticeEndTime(Date noticeEndTime) {
        this.noticeEndTime = noticeEndTime;
    }

    public Date getNoticeCreateTime() {
        return noticeCreateTime;
    }

    public void setNoticeCreateTime(Date noticeCreateTime) {
        this.noticeCreateTime = noticeCreateTime;
    }

    public Date getNoticeUpdateTime() {
        return noticeUpdateTime;
    }

    public void setNoticeUpdateTime(Date noticeUpdateTime) {
        this.noticeUpdateTime = noticeUpdateTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


}
